package com.ostrich.demomvvm.mvvm

import androidx.databinding.ViewDataBinding
import androidx.lifecycle.ViewModelProvider

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/19 08:19
 * @Description : BaseMvvmFragment
 */
abstract class BaseMvvmFragment<VM:BaseViewModel,VDB: ViewDataBinding>:BaseFragment<VDB>() {
    protected val viewModel:VM by lazy { ViewModelProvider(this)[getJVMClass()] }
    abstract fun getJVMClass():Class<VM>
}